// 和新闻呈现有关的路由
let Router = require("koa-router");
let newsController = require("../controller/newsController.js");
let router = new Router({
    prefix:"/news"
});
router.get("/index",newsController.renderIndex);
router.get("/newslist",newsController.renderNewsList);
router.get("/getdata",newsController.getdata);
module.exports = router;